package com.example.onlinemusic.service;

import com.example.onlinemusic.mapper.UserMapper;
import com.example.onlinemusic.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User login(User userLogin){

        return userMapper.login(userLogin);
    }

    public User selectByName(String username){

        return userMapper.selectByName(username);
    }
}
